package cn.wolfcode.util;

import cn.wolfcode.domain.Employee;
import org.apache.shiro.SecurityUtils;

public class UserContext {

    /**
     * 从shiro中获取登录用户信息
     * @return
     */
    public static Employee getCurrentUser(){
        return (Employee) SecurityUtils.getSubject().getPrincipal();
    }
}
